package com.sh.example.consumer;

import com.sh.example.common.model.User;
import com.sh.example.common.service.UserService;
import com.sh.rpc.proxy.ServiceProxyFactory;

public class main {
    public static void main(String[] args) {

        UserService proxy = ServiceProxyFactory.getProxy(UserService.class);
//        proxy.sayHello("sh");
        User user = new User("张三");
        User user1 = proxy.addHello(user);
        System.out.println(proxy.randomInt());

        System.out.println(user1.getName());
    }
}
